package hcs.data.source.api.rest;

import hcs.core.domain.common.R;
import hcs.data.source.api.service.DataSourceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/dataSource")
public class DataSourceController {

    @Autowired
    DataSourceService dataSourceService;

    @PostMapping("/sendSynchro")
    public R transfer() {

        return R.ok(dataSourceService.synchro());
    }

}
